package com.itheima.cs.entity.dbd;

import android.os.Parcel;
import android.os.Parcelable;

public class WarehouseInfo implements Parcelable {
    private String number;
    private String name;
    private String property;
    private String fwcmPers;

    public WarehouseInfo(String number, String name, String property, String fwcmPers) {
        this.number = number;
        this.name = name;
        this.property = property;
        this.fwcmPers = fwcmPers;
    }

    protected WarehouseInfo(Parcel in) {
        number = in.readString();
        name = in.readString();
        property = in.readString();
        fwcmPers = in.readString();
    }

    public static final Creator<WarehouseInfo> CREATOR = new Creator<WarehouseInfo>() {
        @Override
        public WarehouseInfo createFromParcel(Parcel in) {
            return new WarehouseInfo(in);
        }

        @Override
        public WarehouseInfo[] newArray(int size) {
            return new WarehouseInfo[size];
        }
    };

    public String getNumber() { return number; }
    public String getName() { return name; }
    public String getProperty() { return property; }
    public String getFwcmPers() { return fwcmPers; }

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(number);
        dest.writeString(name);
        dest.writeString(property);
        dest.writeString(fwcmPers);
    }
}